package com.fita.scheduler.entity;

/**
 * @description:
 * @author: 11200
 * @date: 2019/9/6
 */
public class AgentCompany {

    private Long id;

    /**
     * 累计提成（一级代理公司发展二级代理下单提成）
     */
    private long totalCommission;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getTotalCommission() {
        return totalCommission;
    }

    public void setTotalCommission(long totalCommission) {
        this.totalCommission = totalCommission;
    }

    public AgentCompany addAgentCommission(Integer amount) {
        this.totalCommission = this.totalCommission + amount;
        return this;
    }
}
